package com.ruoyi.sumfun.blog.tool.file.service;

import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.util.Map;

/**
 * 文件上传接口
 * 
 * @author ruoyi
 */
public interface IMinioSysFileService
{
    /**
     * 文件上传接口
     * 
     * @param inputStream 上传的文件
     * @return 访问地址
     * @throws Exception
     */
    public String uploadFile(String fileName,InputStream inputStream,Long fileSize,String ContentType) throws Exception;

    public String uploadPDF(String fileName, MultipartFile file) throws Exception;




    public InputStream downloadFile( String originalName, HttpServletResponse response);


    public AjaxResult viewStream(String originalName, HttpServletResponse response);
    public InputStream batchDownload(Map<String, Object> map, HttpServletResponse response);

}
